<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>学生管理系统</title>
    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="css/sb-admin.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="./layer/theme/default/layerui.css">
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery -->
    <script src="js/jquery.js"></script>
    <script src="js/templateie/es5-shim.min.js"></script>
    <script src="js/templateie/es5-sham.min.js"></script>
    <script src="js/templateie/json3.min.js"></script>
    <script src="js/template-web.js"></script>
</head>

<body>

<div id="wrapper">
    <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row">

                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title"><i class="fa fa-money fa-fw"></i> 订单</h3>
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive" id="table">
                                <script type="text/html" id="tableTpl">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th>订单编号</th>
                                                <th>商品名称</th>
                                                <th>商品总价</th>
                                                <th>支付金额</th>
                                                <th>支付方式</th>
                                                <th>订单状态</th>
                                                <th>创建时间</th>
                                                <th>支付时间</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {{each res.data as item index}}
                                            <tr>
                                                <td data-id="{{item.id}}">{{item.order_sn}}</td>
                                                <td>{{item.g_name}}</td>
                                                <td>{{item.total_price}}</td>
                                                <td>{{item.pay_amount}}</td>
                                                <td>{{item.pay_type}}</td>
                                                <td>{{item.status}}</td>
                                                <td>{{item.created_at}}</td>
                                                <td>{{item.pay_time}}</td>
                                            </tr>
                                            {{/each}}
                                        </tbody>
                                    </table>
                                </script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /#wrapper -->
<script src="js/bootstrap.min.js"></script>
<script src="js/header.js"></script>
<script src="js/commit.js"></script>
<script src="js/orderlist.js"></script>
<script src="./layer/layer.js"></script>

</body>

</html>
